package y.q.h.util;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class MyUUID {
	public static Map<String,String> mapToken=new HashMap<String,String>();
	public static  Map<String,Long> mapTime=new HashMap<String,Long>();
	public static String getUUID(){
		return UUID.randomUUID().toString().replace("-", "");
	}

	public static  double BigDecimal4(double d){
		BigDecimal bg = new BigDecimal(d);
		double d1 = bg.setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
		return d1;
	}

	public static  double BigDecimal2(double d){
		BigDecimal bg = new BigDecimal(d);
		double d1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
		return d1;
	}
	
	public static void main(String[] args) {
		System.out.println(getUUID());
	}
}
